home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cp-80j.zip / CMDPOST.MA_ < prev    next >
Text File  |  1992-10-10  |  75KB  |  2,773 lines

  1.       ______________________________________________________________________
  2.  
  3.  
  4.                                                                 Command Post
  5.                                                                 User's Guide
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.                                                   Wilson WindowWare, Inc.
  41.                                           2701 California Ave SW  ste 212
  42.                                                         Seattle, WA 98116
  43.  
  44.  
  45.                                                  Orders:   (800) 762-8383
  46.                                                  Support:  (206) 937-9335
  47.                                                       Fax: (206) 935-7129
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.       ______________________________________________________________________
  59.       ______________________________________________________________________
  60.  
  61.  
  62.                     Copyright (c) 1988-1992 by Morrie Wilson.
  63.                                All rights reserved.
  64.  
  65.  
  66.  
  67.  
  68.       No part of this manual may be reproduced or transmitted in any form
  69.       or by any means, electronic or mechanical, including photocopying
  70.       and recording, for any purpose without the express written
  71.       permission of Wilson WindowWare, Inc.  Information in this document
  72.       is subject to change without notice and does not represent a
  73.       commitment by Wilson WindowWare, Inc.
  74.  
  75.  
  76.  
  77.       The software described herein is furnished under a license agreement.
  78.       It is against the law to copy this software under any circumstances
  79.       except as provided by the license agreement.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.       U.S. Government Restricted Rights
  93.       Use, duplication, or disclosure by the Government is subject to
  94.       restrictions as set forth in subdivision (b)(3)(ii) of the Rights in
  95.       Technical Data and Computer Software clause at 252.227-7013.
  96.       Contractor/manufacturer is Wilson WindowWare, Inc./2701 California Ave
  97.       SW /ste 212/Seattle, WA 98116
  98.  
  99.  
  100.  
  101.  
  102.       Trademarks
  103.       Microsoft and MS-DOS are registered trademarks of Microsoft
  104.       Corporation.
  105.       Windows, Word for Windows, and Excel are trademarks of Microsoft
  106.       Corporation.
  107.  
  108.       WinBatch, Command Post, and File Commander are trademarks of Wilson
  109.       WindowWare, Inc.
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.       ______________________________________________________________________
  117.                                                                           ii
  118.       ______________________________________________________________________
  119.  
  120.  
  121.  
  122.                                      CONTENTS
  123.  
  124.  
  125.       CONTENTS                                            iii
  126.  
  127.       INTRODUCTION                                         iv
  128.         System Requirements                                iv
  129.         About This Manual                                   v
  130.         Notational Conventions                              v
  131.         Acknowledgements                                    v
  132.  
  133.       GETTING STARTED                                       1
  134.  
  135.       USING COMMAND POST                                    2
  136.         Starting Command Post                               2
  137.         The Command Post Window                             3
  138.         Additional Command Post Windows                     3
  139.         Keyboard and Mouse Shortcuts                        4
  140.         About the Menu Files                               10
  141.         Command-line Parameters                            12
  142.         Replacing the Task Manager                         13
  143.         Control Menu                                       15
  144.         File Menu                                          16
  145.         Dir Menu                                           21
  146.         View Menu                                          22
  147.         Main Menu                                          25
  148.  
  149.       COMMAND POST FUNCTIONS                               29
  150.         Introduction                                       29
  151.         Function List                                      29
  152.         DirExist                                           30
  153.         DiskHide                                           31
  154.         DiskReset                                          32
  155.         DiskUpdate                                         33
  156.         FileHilite                                         34
  157.         IntControl                                         35
  158.         MsgTextGet                                         37
  159.         OtherDir                                           38
  160.         OtherUpdate                                        39
  161.         Refresh                                            40
  162.         SetDisplay                                         41
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.       ______________________________________________________________________
  176.                                                                          iii
  177.       ______________________________________________________________________
  178.  
  179.  
  180.  
  181.                                    INTRODUCTION
  182.  
  183.       Command Post helps you end some of the drudgery of day-to-day tasks
  184.       when working in Microsoft Windows.
  185.  
  186.       How many times have you tired of changing drives, moving through two
  187.       subdirectories, finding an executable file from among 43 other
  188.       filenames, double clicking on it, selecting File/Open, then searching
  189.       for another directory in the listbox because your document happens to
  190.       be in a different directory than the program!  With Command Post you
  191.       can automate that knowledge of where to move around the disk, which
  192.       directories to go to, which files you want to work on, what size you
  193.       prefer your window to be, and so on.
  194.  
  195.  
  196.  
  197.       With almost two hundred functions and commands, Command Post can:
  198.  
  199.  
  200.         .  Run Windows and DOS programs.
  201.  
  202.         .  Send keystrokes directly to applications.
  203.  
  204.         .  Rearrange, resize, hide, and close windows.
  205.  
  206.         .  Run programs either concurrently or sequentially.
  207.  
  208.         .  Display information to the user in various formats.
  209.  
  210.         .  Prompt the user for any needed input.
  211.  
  212.         .  Present scrollable file and directory lists.
  213.  
  214.         .  Copy, move, delete, and rename files.
  215.  
  216.         .  Read and write files directly.
  217.  
  218.         .  Copy text to and from the Clipboard.
  219.  
  220.         .  Perform string and arithmetic operations.
  221.  
  222.         .  Make branching decisions based upon numerous factors.
  223.  
  224.  
  225.       And much, much more.
  226.  
  227.  
  228.  
  229.  
  230.       System Requirements
  231.       Command Post requires an IBM PC or compatible with a minimum of 2
  232.       megabytes of RAM, running Microsoft Windows version 3.0 or higher.
  233.  
  234.       ______________________________________________________________________
  235.                                                                           iv
  236.       ______________________________________________________________________
  237.  
  238.  
  239.  
  240.  
  241.  
  242.       About This Manual
  243.       Command Post is an application which uses our Windows Interface
  244.       Language (WIL).  Please refer to the WIL Reference Manual for an
  245.       introduction to WIL, as well as for complete documentation of the many
  246.       functions available in WIL (and, therefore, in Command Post).
  247.  
  248.       This User's Guide includes only topics and functions which are
  249.       exclusive to Command Post or which behave differently in Command Post,
  250.       as well as additions and changes that have been made since the WIL
  251.       Reference Manual went to press.
  252.  
  253.       Note: Command Post is a menu file based implementation of WIL.
  254.  
  255.  
  256.  
  257.  
  258.       Notational Conventions
  259.       Throughout this manual, we use the following conventions to
  260.       distinguish elements of text:
  261.  
  262.       ALL-CAPS
  263.         Used for filenames.
  264.  
  265.       Boldface
  266.         Used for important points, programs, function names, and parts of
  267.         syntax that must appear as shown.
  268.  
  269.       system
  270.         Used for items in menus and dialogs, as they appear to the user.
  271.  
  272.       Small fixed-width
  273.         Used for WIL sample code.
  274.  
  275.       Italics
  276.         Used for emphasis, and to liven up the documentation just a bit.
  277.  
  278.  
  279.  
  280.  
  281.       Acknowledgements
  282.       Command Post software developed by Morrie Wilson.
  283.  
  284.       Documentation written by Richard Merit.
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.       ______________________________________________________________________
  294.                                                                            v
  295.       ______________________________________________________________________
  296.  
  297.  
  298.  
  299.                                      GETTING
  300.                                      STARTED
  301.  
  302.       Command Post is quite easy to install.  You will find an appropriate
  303.       diskette in your Command Post package.  Take the diskette and insert
  304.       it into your floppy drive.  The Command Post installation program is
  305.       itself a Windows application, so make sure Windows is running.
  306.  
  307.       From Program Manager, double-click on the File Manager icon.  When
  308.       File Manager starts, click on the A: or B: drive icon, depending on
  309.       which floppy drive contains the Command Post diskette.  A directory
  310.       tree will appear for the Command Post diskette.  You should see a root
  311.       directory icon.  Double-click on this icon and a list of filenames
  312.       will appear.  Find the filename WSETUP.EXE and double-click on it.
  313.       Follow whatever instructions WSETUP gives you.
  314.  
  315.       WSETUP will copy or create the necessary files in a directory of your
  316.       choice.
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.       ______________________________________________________________________
  353.                                                                            1
  354.       ______________________________________________________________________
  355.  
  356.  
  357.  
  358.                                       USING
  359.                                    COMMAND POST
  360.  
  361.  
  362.  
  363.  
  364.       Starting Command Post
  365.       There are several ways you can start Command Post:
  366.  
  367.       1.   From Program Manager, by double-clicking on the Command Post icon
  368.            in the Command Post program group.
  369.  
  370.       2.   From File Manager, by changing to the directory where you
  371.            installed Command Post and double-clicking on CMDPOST.EXE.
  372.  
  373.       3.   By selecting Run from the File menu of either Program Manager or
  374.            File Manager, and typing in "CMDPOST.EXE".
  375.  
  376.       4.   Automatically when Windows starts up, by adding "CMDPOST.EXE" to
  377.            the "RUN=" line in the [Windows] section of your WIN.INI file.
  378.            Alternatively, in Windows 3.1 or higher, you can copy or move the
  379.            Command Post icon from the Command Post program group to the
  380.            StartUp program group in Program Manager (please refer to your
  381.            Windows manual for more information on this procedure).
  382.  
  383.       5.   By making Command Post your Windows shell.  Edit the "Shell="
  384.            line in the [Boot] section of your SYSTEM.INI file as follows:
  385.  
  386.            Shell=CMDPOST.EXE
  387.  
  388.        Save the file and restart Windows.  Command Post will now be your
  389.        shell.  If you had been loading any programs automatically upon
  390.        Windows startup, you will either want to add them to the
  391.        initialization (AUTOEXEC) section of your CMDUSER.CPM menu file (see
  392.        the sample CMDUSER.CPM file for an example of this), or else
  393.        configure Command Post to process the RUN= and LOAD= lines of your
  394.        WIN.INI file by selecting Auto Run= and Load= Options from the
  395.        Command Post File menu, under Preferences.
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.       ______________________________________________________________________
  412.                                                                            2
  413.       ______________________________________________________________________
  414.  
  415.  
  416.  
  417.  
  418.  
  419.       The Command Post Window
  420.  
  421.       At the very top of the Command Post window is the title bar.  At the
  422.       left end of the title bar is a little box which is called the Control
  423.       menu (also known as the System menu).  Below the title bar are the
  424.       pull-down menus, all of which are fully-customizable.  Beneath the
  425.       menus are a series of drive icons, one for each available drive on
  426.       your system, with the icon for the currently-logged drive highlighted.
  427.       To the right of the drive icons is a text string showing the name of
  428.       the current directory.  Below that, and filling up most of the Command
  429.       Post window, is a list of the subdirectories and files contained in
  430.       the current directory (by default, hidden and system files are not
  431.       listed, but this can be changed by selecting Preferences from the File
  432.       menu).  If there are more files than will fit in the display at one
  433.       time, then a horizontal scroll bar will appear at the bottom of the
  434.       window, allowing you to scroll through the file display.
  435.  
  436.  
  437.  
  438.  
  439.       Additional Command Post Windows
  440.  
  441.       You can run up to four separate instances of Command Post at any one
  442.       time.  Each copy of Command Post has its own set of menus and its own
  443.       file display, and (at least by default) has a unique window title.
  444.       You can have each Command Post window display a different directory,
  445.       which makes it convenient to perform file management operations.
  446.       Select Preferences from the File menu to modify the default Command
  447.       Post window positions and/or window titles (registered version only).
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.       ______________________________________________________________________
  471.                                                                            3
  472.       ______________________________________________________________________
  473.  
  474.  
  475.  
  476.  
  477.  
  478.       Keyboard and Mouse Shortcuts
  479.  
  480.       The table on the next two pages shows the keyboard and mouse shortcuts
  481.       which can be used to navigate through your directories, and to select
  482.       and run files:
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.       ______________________________________________________________________
  530.                                                                            4
  531.       ______________________________________________________________________
  532.  
  533.  
  534.  
  535.         Action                   Mouse              Keyboard
  536.         ******                   *****              ********
  537.                             Click on drive      Type Ctrl +
  538.         Select a Drive      icon with the       desired drive
  539.                             left button.        letter.
  540.  
  541.  
  542.  
  543.  
  544.  
  545.                             Doubleclick on
  546.         Open another        drive icon with
  547.         Cmd Post window     the left
  548.         on a different      button.
  549.         drive
  550.  
  551.  
  552.  
  553.  
  554.                             Click on            Use arrow keys
  555.         Select a File       desired             to place
  556.                             filename with       selection box
  557.                             left button.        over desired
  558.                                                 file.
  559.  
  560.                                                 OR:  Press
  561.                                                 first letter of
  562.                                                 filename to
  563.                                                 move selection
  564.                                                 box to next
  565.                                                 file with that
  566.                                                 letter.
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.       ______________________________________________________________________
  589.                                                                            5
  590.       ______________________________________________________________________
  591.  
  592.  
  593.  
  594.         Action                   Mouse              Keyboard
  595.         ******                   *****              ********
  596.  
  597.  
  598.                             Click on            Press the Shift
  599.         Select              additional          key while
  600.         Additional          filenames with      dragginf
  601.         Files               the left button     selection box
  602.                             while pressing      over a range of
  603.                             the Shift key.      filenames.
  604.  
  605.                             OR:  Click on       Press the Ctrl
  606.                             additional          key while
  607.                             filenames with      moving
  608.                             the right           selection box
  609.                             button.             over filenames
  610.                                                 you don't want
  611.                             OR:  Drag mouse     to select.
  612.                             over a group of
  613.                             additional
  614.                             filenames with
  615.                             the right
  616.                             button pressed.
  617.  
  618.  
  619.  
  620.  
  621.  
  622.                                                 Press the Space
  623.         Toggle the                              Bar.
  624.         Highlight on
  625.         Current File
  626.  
  627.  
  628.  
  629.  
  630.                                                 Press the Home
  631.         Move to Top of                          key.
  632.         Dir List
  633.                                                 OR:  Press
  634.                                                 Ctrl-Home if
  635.                                                 you want the
  636.                                                 currently-
  637.                                                 selected
  638.                                                 file(s) to
  639.                                                 remain
  640.                                                 highlighted.
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.       ______________________________________________________________________
  648.                                                                            6
  649.       ______________________________________________________________________
  650.  
  651.  
  652.  
  653.         Action                   Mouse              Keyboard
  654.         ******                   *****              ********
  655.  
  656.  
  657.                                                 Press the End
  658.         Move to End of                          key.
  659.         Dir List
  660.                                                 OR:  Press
  661.                                                 Ctrl-End if you
  662.                                                 want the
  663.                                                 currently-
  664.                                                 selected
  665.                                                 file(s) to
  666.                                                 remain
  667.                                                 highlighted.
  668.  
  669.  
  670.  
  671.  
  672.  
  673.                                                 Press Shift-
  674.         Select from                             Home.
  675.         Current File to
  676.         Top of List
  677.  
  678.  
  679.  
  680.  
  681.                                                 Press Shift-
  682.         Select from                             End.
  683.         Current File to
  684.         End of List
  685.  
  686.  
  687.  
  688.  
  689.                                                 Press the Home
  690.         Select All                              key, then press
  691.         Files                                   Shift-End.
  692.  
  693.  
  694.  
  695.  
  696.  
  697.                             Doubleclick on
  698.         Select or           desired file
  699.         De-select All       name with the
  700.         Files w/Same        right button.
  701.         Extension as a
  702.         Certain File
  703.  
  704.  
  705.  
  706.       ______________________________________________________________________
  707.                                                                            7
  708.       ______________________________________________________________________
  709.  
  710.  
  711.  
  712.         Action                   Mouse              Keyboard
  713.         ******                   *****              ********
  714.  
  715.  
  716.                             Doubleclick on      Place selection
  717.         Change to a         desired subdir-     box over
  718.         subdirectory        ectory with the     desired
  719.                             left button.        directory and
  720.                                                 press Enter.
  721.  
  722.  
  723.  
  724.  
  725.  
  726.                             Click on            Press the
  727.         Change to the       desired             Backspace key.
  728.         Parent              directory in
  729.         Directory           the current         OR:  Place
  730.                             path string         selection box
  731.                             (next to the        over the two
  732.                             drive icons)        dots (..) at
  733.                             with the left       the top of the
  734.                             button.             dir list and
  735.                                                 press Enter.
  736.                             OR:
  737.                             Doubleclick on
  738.                             the two dots
  739.                             (..) at the top
  740.                             of the dir
  741.                             list.
  742.  
  743.  
  744.  
  745.  
  746.  
  747.                             Doubleclick on      Place selection
  748.         Run a Program       desired .EXE        box over
  749.                             filename.           desired program
  750.                                                 or datafile and
  751.                             OR:                 press Enter.
  752.                             Doubleclick on
  753.                             datafile name
  754.                             if it has an
  755.                             [extensions]
  756.                             association in
  757.                             WIN.INI
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.       ______________________________________________________________________
  766.                                                                            8
  767.       ______________________________________________________________________
  768.  
  769.  
  770.  
  771.         Action                   Mouse              Keyboard
  772.         ******                   *****              ********
  773.  
  774.  
  775.  
  776.  
  777.                             Same as running     Same as running
  778.         Run a Program       a program,          a program,
  779.         as an Icon          except press        except press
  780.                             the Shift key       Shift+Enter.
  781.                             while clicking
  782.                             the filename.
  783.  
  784.  
  785.  
  786.  
  787.  
  788.                             Same as running     Same as running
  789.         Run a Program       a program,          a program,
  790.         Maximized           except press        except press
  791.                             the Ctrl key        Ctrl+Enter.
  792.                             while clicking
  793.                             the filename.
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.       ______________________________________________________________________
  825.                                                                            9
  826.       ______________________________________________________________________
  827.  
  828.  
  829.  
  830.  
  831.  
  832.       About the Menu Files
  833.  
  834.       All the pull-down menus, with the exception of the Control menu, are
  835.       completely configurable and are defined in menu files, which have an
  836.       extension of CPM.  Command Post allows you to specify from one to 10
  837.       separate menu files.  The names of these menu files are specified in
  838.       the [CmdPost] section of the WWW-PROD.INI file.  We include four CPM
  839.       files, which the setup program places in WWW-PROD.INI as follows:
  840.  
  841.         Menu0=CMDPOST1.CPM
  842.         Menu1=CMDPOST2.CPM
  843.         Menu2=CMDUSER.CPM
  844.         Menu3=CMDGROUP.CPM
  845.  
  846.       You are free to edit or replace these files with ones of your own (but
  847.       read the section which follows), or to add additional menu files
  848.       (i.e., Menu4 through Menu9).  Each of these menu files is independent,
  849.       and is edited individually (refer to the WIL Reference Manual for
  850.       information on menu file structure).  A single menu file can contain
  851.       one top-level menu item, or it can contain many such menu items.  When
  852.       the menu files are loaded upon startup, they are essentially appended
  853.       together to form a single unified menu structure.  The reason for
  854.       having multiple menu files is to make Command Post more modular, and
  855.       to make it easier to edit the menu files with editors like Notepad
  856.       which cannot handle large files.
  857.  
  858.       The following menu files are shipped with Command Post:
  859.  
  860.  
  861.       CMDPOST1.CPM
  862.       CMDPOST2.CPM
  863.  
  864.       These two menu files contain the core menu items for file and
  865.       directory management, configuration of the Command Post display
  866.       window, execution of common applications, and general housekeeping.
  867.       We do not recommend that beginning users make major modifications to
  868.       these files until they are comfortable with the use of the WIL
  869.       language (as discussed in the WIL Reference Manual).  Even advanced
  870.       users should consider the fact that the default versions of these
  871.       files get revised as new features are added to the language (and as
  872.       bugs are found in the existing menus), and if you wish to take
  873.       advantage of this you will need to reconcile your changes with ours
  874.       (the Command Post setup program will always give you the choice of
  875.       whether or not to replace your copies of CMDPOST1.CPM and CMDPOST2.CPM
  876.       with the default ones shipped with the program).
  877.  
  878.       The items contained in these two menu files are described in detail in
  879.       the section titled Command Post Default Menus, below.
  880.  
  881.  
  882.  
  883.       ______________________________________________________________________
  884.                                                                           10
  885.       ______________________________________________________________________
  886.  
  887.  
  888.  
  889.       CMDUSER.CPM
  890.  
  891.       This menu file contains a number of sample menu items for you to use.
  892.       Feel free to customize it in any way you wish (the setup program will
  893.       never overwrite your CMDUSER.CPM file).  Many of the menu items in
  894.       this file contain comments to help you follow along.  At the top of
  895.       this file is an initialization, or AUTOEXEC, section: this is where
  896.       you can put any programs that you want to be run automatically when
  897.       Command Post starts up, or any commands that you want to be executed
  898.       upon startup.
  899.  
  900.  
  901.       CMDGROUP.CPM
  902.  
  903.       This menu file contains one top-level menu item, titled "Groups".  As
  904.       shipped, the Groups menu contains a single item: Rebuild Menu from
  905.       ProgMan Grps.  Selecting this item causes Command Post to read your
  906.       Program Manager program group (.GRP) files and convert them to Command
  907.       Post menu items, which it adds to the Groups menu.  You can select
  908.       Rebuild Menu from ProgMan Grps as often as you wish; each time you do,
  909.       it will rebuild the entire Groups menu.
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.       ______________________________________________________________________
  943.                                                                           11
  944.       ______________________________________________________________________
  945.  
  946.  
  947.  
  948.  
  949.  
  950.       Command-line Parameters
  951.  
  952.       Normally, when you start up Command Post, it loads the menu files
  953.       listed as Menu0 through Menu9 in the [CmdPost] section of
  954.       WWW-PROD.INI.  However, if you wish, you can run Command Post and
  955.       specify the name of an alternate CPM file as a command-line parameter.
  956.       For example:
  957.  
  958.         CMDPOST mystuff.cpm
  959.  
  960.       This will cause Command Post (either the first instance or a secondary
  961.       instance of Command Post) to start up using MYSTUFF.CPM as its menu
  962.       file, and will not load any of the menus specified in WWW-PROD.INI.
  963.  
  964.       You can also specify the name of an application (or a data file which
  965.       has been associated with an application) on the Command Post command
  966.       line, such as:
  967.  
  968.         CMDPOST calendar.exe
  969.  
  970.       This will cause Command Post to start up (with its normal menus) and
  971.       load the Windows Calendar program automatically.  If you have made
  972.       Command Post your Windows shell, then you can run Windows with a
  973.       command line parameter, such as:
  974.  
  975.         WIN calendar.exe
  976.  
  977.       Which will also cause Command Post to load Calendar automatically on
  978.       startup.
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.       ______________________________________________________________________
  1002.                                                                           12
  1003.       ______________________________________________________________________
  1004.  
  1005.  
  1006.  
  1007.  
  1008.       Replacing the Task Manager
  1009.  
  1010.       Windows uses a special program called the Task Manager (TASKMAN.EXE).
  1011.       The Task Manager is invoked whenever you do any of the following:
  1012.  
  1013.         1. Press Ctrl-Esc.
  1014.         2. Select Switch To... from the system menu of any application.
  1015.         3. Doubleclick on the screen background with the mouse.
  1016.  
  1017.       The Task Manager supplied with Windows brings up a dialog box which
  1018.       lets you choose which window to go to.
  1019.  
  1020.       Command Post gives you most of Task Manager's functionality.  For this
  1021.       reason, you may wish to have Command Post act as your task manager,
  1022.       replacing TASKMAN.EXE.  The procedure for doing this depends on the
  1023.       version of Windows you are using.  Under Windows 3.0, it is as
  1024.       follows:
  1025.  
  1026.         1. Rename Microsoft's TASKMAN.EXE to something different, such as
  1027.           TASKMANG.EXE.
  1028.  
  1029.         2. Copy TASKMANR.EXE from the TASKMAN subdirectory (this
  1030.           subdirectory was created under the directory where you chose to
  1031.           install Command Post) to your Windows directory.
  1032.  
  1033.         3. Rename TASKMANR.EXE to TASKMAN.EXE.
  1034.  
  1035.       Under Windows 3.1 or higher, you can use the above method, or you can:
  1036.  
  1037.         1. Copy TASKMAN.EXE from the TASKMAN subdirectory (this subdirectory
  1038.           was created under the directory where you chose to install
  1039.           Command Post) to your Windows directory.
  1040.  
  1041.         2. Edit the "TASKMAN.EXE=" line in the [Boot] section of your
  1042.           SYSTEM.INI file to read as follows:
  1043.  
  1044.             TASKMAN.EXE=TASKMANR.EXE
  1045.  
  1046.         3. Restart Windows.
  1047.  
  1048.  
  1049.       After that, invoking Task Manager (using any of the methods listed
  1050.       above) will simply cause Windows to switch to Command Post.
  1051.  
  1052.       Windows' Task Manager has one feature that Command Post lacks: in some
  1053.       instances it lets you shut down otherwise recalcitrant programs with
  1054.       the End Task button.  For this reason, you may want to make Windows'
  1055.       Task Manager available as a Command Post menu item:
  1056.  
  1057.        &Utilities
  1058.         &Task Manager
  1059.          Run ("Taskmang.exe", "")
  1060.       ______________________________________________________________________
  1061.                                                                           13
  1062.       ______________________________________________________________________
  1063.  
  1064.  
  1065.        Limitations
  1066.  
  1067.        Command Post supports a maximum of 100 hotkeys per window.
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.       ______________________________________________________________________
  1120.                                                                           14
  1121.       ______________________________________________________________________
  1122.  
  1123.  
  1124.        COMMAND POST
  1125.        DEFAULT MENUS
  1126.  
  1127.  
  1128.  
  1129.       Control Menu
  1130.       ************
  1131.       The Control Menu (also known as the System Menu) is the little box in
  1132.       the upper left hand corner of the Command Post window, to the left of
  1133.       the title bar.  It is the only menu in Command Post which cannot be
  1134.       customized by the user.  In addition to the standard menu items which
  1135.       are common to all Windows applications (Restore, Move, Size, Minimize,
  1136.       Maximize, Close, and Switch To...), you will find the following:
  1137.  
  1138.  
  1139.       Enter License Info
  1140.       (Appears only on shareware copies of Command Post.)
  1141.  
  1142.       Use this selection to enter your license number and ID when you
  1143.       register your copy of Command Post.  Registering brings you wonderful
  1144.       benefits:
  1145.  
  1146.       o Gets rid of that pesky reminder window that comes up every time you
  1147.        start the program.
  1148.       o Entitles you to one hour free telephone support for 90 days.
  1149.       o Gets you the latest version of Command Post.
  1150.       o Gets you your own printed copy of the documentation.
  1151.       o Encourages the authors of this program to continue bringing you new
  1152.        and better products instead of breaking down and getting a real job.
  1153.  
  1154.       Reload Menu
  1155.       This is the selection you must choose after making changes to an
  1156.       active menu file in order to enable the changes.
  1157.  
  1158.  
  1159.       About Command Post...
  1160.       Displays copyright, version, and license information.
  1161.  
  1162.  
  1163.       Terminate Windows
  1164.       This menu item ends your Windows session.
  1165.  
  1166.  
  1167.       (the second column)
  1168.       The right-hand column of entries contains the names of all the open
  1169.       application windows.  You can switch to one of these programs by
  1170.       doubleclicking on its title, or pressing the number which appears to
  1171.       the left of the title, or selecting the title and pressing Enter.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.       ______________________________________________________________________
  1179.                                                                           15
  1180.       ______________________________________________________________________
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.       File Menu
  1187.       *********
  1188.  
  1189.       Run...
  1190.       Load...
  1191.       These selections launch a program.  Run... starts it as a "normal"
  1192.       window, i.e. not full-screen.  Load... starts the program as an icon.
  1193.  
  1194.       In either case a dialog box is displayed asking you for the name of
  1195.       the file you want to start.  Whichever file is currently highlighted
  1196.       in the directory listing is the default.
  1197.  
  1198.  
  1199.       Browse
  1200.       This menu item runs the Command Post Browser program to view the
  1201.       selected file.  See the documentation for Browser in Appendix C of the
  1202.       WIL Reference Manual, or use the on-line help built into Browser.
  1203.  
  1204.  
  1205.       Edit...
  1206.       Allows you to edit the selected file.  The default editor is Notepad,
  1207.       but you can change this by selecting Editor Options from the File
  1208.       menu, under Preferences.
  1209.  
  1210.  
  1211.       Copy...
  1212.       This menu item lets you copy the selected files to another filename,
  1213.       directory, or drive.  If you have more than one Command Post window
  1214.       open, the default destination is the second-most recently accessed
  1215.       Command Post window.  If you have only one Command Post window open, a
  1216.       dialog box is displayed for you to specify the destination pathname;
  1217.       the default is the most recently-used copy or move destination, or the
  1218.       current directory if this is the first copy or move operation that has
  1219.       taken place.
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.       ______________________________________________________________________
  1238.                                                                           16
  1239.       ______________________________________________________________________
  1240.  
  1241.  
  1242.       Move/Rename...
  1243.       This selection lets you rename the selected files to another name, or
  1244.       to move them to another directory or drive.  If you are moving files,
  1245.       and have more than one Command Post window open, the default
  1246.       destination is the second-most recently accessed Command Post window.
  1247.       If you have only one Command Post window open, a dialog box is
  1248.       displayed for you to specify the destination pathname; the default is
  1249.       the most recently-used copy or move destination, or the current
  1250.       directory if this is the first copy or move operation that has taken
  1251.       place.
  1252.  
  1253.       You can move and rename files in the same process.
  1254.  
  1255.  
  1256.       Delete File...
  1257.       This menu item lets you delete the selected files.  A dialog box will
  1258.       appear to confirm you really want to delete them.
  1259.  
  1260.  
  1261.       Print...
  1262.       This copies the selected file to any standard (non-PostScript)
  1263.       printer.  The first time you select this item, it prompts you for the
  1264.       device to print to, and stores that information for future use.  If
  1265.       you ever wish to change this, select Reset Assorted Options from the
  1266.       File menu, under Preferences.
  1267.  
  1268.       This command is meant to be used with text files only; it doesn't
  1269.       attempt to format the file or otherwise interpret it.
  1270.  
  1271.  
  1272.       File Info
  1273.       This menu item displays a message box showing the name, size, date,
  1274.       time, and attributes of the selected file(s), as well as showing how
  1275.       much space is taken up by the selected files.
  1276.  
  1277.  
  1278.       Freespace on Local Drives
  1279.       This menu displays a message box showing you how much space is
  1280.       available on your hard drives.  The totals are given both in kilobytes
  1281.       and using a (rudimentary) bar graph.
  1282.  
  1283.       Exit Windows
  1284.       This menu item ends your Windows session.
  1285.  
  1286.  
  1287.       Find file
  1288.  
  1289.       On DOS Path
  1290.       This prompts you for a file name, and looks for it in each directory
  1291.       on your DOS path.  If successful, it displays a dialog box giving you
  1292.       the opportunity to change to the directory where the first occurrence
  1293.       of the file was found.  Wildcards may not be used in the file name.
  1294.  
  1295.       This operation takes no more than a few seconds.
  1296.       ______________________________________________________________________
  1297.                                                                           17
  1298.       ______________________________________________________________________
  1299.  
  1300.  
  1301.  
  1302.  
  1303.       On Current Drive
  1304.       This prompts you for a file specification, which may contain
  1305.       wildcards, and looks for all occurrences of it on the current drive.
  1306.       If successful, it displays a box containing a list of all files that
  1307.       were found which matched the specification, and if you select one of
  1308.       the files in the list it will change to the directory where the file
  1309.       is located.
  1310.  
  1311.       This can be a very long operation, especially on a large hard drive.
  1312.  
  1313.  
  1314.       Hilite Files
  1315.       Unhilite Files
  1316.       These menu items are used to highlight or unhighlight all files in a
  1317.       directory which match a particular file specification (By Name) or
  1318.       which have a particular file attribute (By Attribute).  They display a
  1319.       dialog box allowing you to enter either a wildcarded file
  1320.       specification (which defaults to all files with the same extension as
  1321.       the currently-selected file) or a file attribute (which defaults to
  1322.       files with the Archive attribute set.
  1323.  
  1324.  
  1325.       File Attributes
  1326.       Displays a dialog box allowing you to change the attributes of either
  1327.       the current file (View/Modify current file) or all selected files
  1328.       (Change hilited files).
  1329.  
  1330.  
  1331.       Floppy Space
  1332.       Displays a message box showing you how much space is taken up by the
  1333.       selected files and how much free space is available on your floppy
  1334.       drives (either A: or B:).
  1335.  
  1336.       This is especially useful when you are preparing to copy files to a
  1337.       floppy disk and want to know if you have enough space to receive the
  1338.       files.
  1339.  
  1340.  
  1341.       Network
  1342.       (These menu items are available only if you are running on a network.)
  1343.  
  1344.  
  1345.       Connect Drive to Net
  1346.       This menu item allows you to browse from a list of available network
  1347.       directories, and connects the selected directory to an available local
  1348.       drive letter.
  1349.  
  1350.  
  1351.       Disconnect
  1352.       This menu item displays a list of local drive letters which are
  1353.       connected to network directories, and disconnects the drive you
  1354.       select.
  1355.       ______________________________________________________________________
  1356.                                                                           18
  1357.       ______________________________________________________________________
  1358.  
  1359.  
  1360.       Net Dialog
  1361.       This menu item displays the network's dialog box.  The functions which
  1362.       are available from the dialog depend on the capabilities of your
  1363.       network.
  1364.  
  1365.  
  1366.       Preferences
  1367.       These menu items allow you to change various Command Post options:
  1368.  
  1369.  
  1370.       Show System/Hidden Files
  1371.       Controls whether hidden and system files are listed in the Command
  1372.       Post file display.  By default, such files are not displayed.
  1373.  
  1374.  
  1375.       Save CmdPost Window Positions
  1376.       Saves the positions of the currently-open Command Post window(s) for
  1377.       future use by the window-sizing logic which automatically positions
  1378.       all Command Post windows on open and close.
  1379.  
  1380.  
  1381.       Auto Run= and Load= Options
  1382.       Controls whether the programs listed on the "Run=" and "Load=" lines
  1383.       in the WIN.INI file are run automatically when Command Post starts up.
  1384.       This can be useful if you frequently switch between Command Post and
  1385.       another shell, such as Program Manager.  By default, Command Post does
  1386.       not run programs listed in WIN.INI on startup.
  1387.  
  1388.  
  1389.       CmdPost Window Titles
  1390.       Allows you to specify the window titles for each of the four possible
  1391.       Command Post windows.
  1392.  
  1393.  
  1394.       View Menu Startup Options
  1395.       Controls whether the settings you make on the View menu are saved and
  1396.       used as the default settings when Command Post starts up in the
  1397.       future.
  1398.  
  1399.  
  1400.       Editor Options
  1401.       Allows you to specify an editor to be used by the File/Edit menu item.
  1402.       By default, Notepad is used.
  1403.  
  1404.  
  1405.       File Refresh
  1406.       Controls whether the Command Post file display is automatically
  1407.       updated after a program is run.  By default, this option is on.
  1408.  
  1409.  
  1410.       Default DoubleClick Program
  1411.       Allows you to specify which executable program should be run when you
  1412.       try to launch a data file whose extension is not listed in the
  1413.       [Extensions] section of WIN.INI.
  1414.       ______________________________________________________________________
  1415.                                                                           19
  1416.       ______________________________________________________________________
  1417.  
  1418.  
  1419.  
  1420.       Reset Assorted Options
  1421.       This menu item lets you reset the stored information about the types
  1422.       of floppy drives you have installed, the port to which your text
  1423.       printer is connected, and the directory where you keep your wallpaper
  1424.       files.  The next time you select a menu item which makes use of this
  1425.       information, you will be prompted to re-enter it.
  1426.  
  1427.       This is useful after making changes to your system configuration.
  1428.  
  1429.  
  1430.       Extensions...
  1431.       Windows gives you the ability to double-click on a data filename and
  1432.       automatically run a program with it based on the data file's
  1433.       extension.  For instance, you can doubleclick on a .CRD file and the
  1434.       Cardfile program will start up and load the file you chose.  The
  1435.       "association" between .CRD files and the Cardfile program is stored in
  1436.       the [Extensions] section of the WIN.INI file.
  1437.  
  1438.       The File/Extensions... menu displays a dialog box allowing you to add
  1439.       or change the association between the selected file's extension and a
  1440.       program.  If you change the association line, the new relationship
  1441.       will be recorded in the WIN.INI file.  This is more convenient than
  1442.       having to bring up Notepad and edit WIN.INI in order to change the
  1443.       association.
  1444.  
  1445.       The next time you doubleclick on that file (or any other file with the
  1446.       same extension), the associated program will be run with it.
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.       ______________________________________________________________________
  1474.                                                                           20
  1475.       ______________________________________________________________________
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.       Dir Menu
  1482.       ********
  1483.  
  1484.       Create Directory...
  1485.       This menu item lets you create a subdirectory under the current
  1486.       directory.
  1487.  
  1488.  
  1489.       Rename Directory...
  1490.       This menu item lets you rename the currently-selected subdirectory.
  1491.  
  1492.  
  1493.       Kill Directory
  1494.       This menu item deletes the selected subdirectory(s), if it is empty.
  1495.  
  1496.  
  1497.       Change Directory...
  1498.       This selection changes the current directory to one that you specify.
  1499.  
  1500.       You can also change directories by doubleclicking on a subdirectory
  1501.       name, clicking on the pathname above the file listing, or pressing
  1502.       backspace to go back up to the parent directory.
  1503.  
  1504.  
  1505.       Nuke ENTIRE file/dir structure
  1506.       This menu item deletes all selected files and directories, as well as
  1507.       any files and subdirectories contained in the selected directory(s).
  1508.       It will display several warning messages before beginning the
  1509.       operation, but once it has started it does not prompt for confirmation
  1510.       of individual files.
  1511.  
  1512.       Warning: This operation can permanently delete a great deal of data in
  1513.       a relatively short period of time.  Make sure you know what you are
  1514.       doing.
  1515.  
  1516.  
  1517.       Duplicate ENTIRE file/dir structure
  1518.       This menu item copies the selected directory (including any files and
  1519.       subdirectories it contains) to a different location.  It will prompt
  1520.       you for the name of the target (destination) directory before it
  1521.       begins.  The source (original) directory and files are left untouched.
  1522.  
  1523.  
  1524.       Move ENTIRE file/dir structure
  1525.       This menu item moves the selected directory (including any files and
  1526.       subdirectories it contains) to a different location.  It will prompt
  1527.       you for the name of the target (destination) directory before it
  1528.       begins.  The source (original) directory and files are deleted.
  1529.  
  1530.       Warning: Use this option with care.
  1531.  
  1532.       ______________________________________________________________________
  1533.                                                                           21
  1534.       ______________________________________________________________________
  1535.  
  1536.  
  1537.  
  1538.       Size of ENTIRE file/dir structure
  1539.       This menu item calculates the total size of all selected files and
  1540.       directories, as well as any files and subdirectories contained in the
  1541.       selected directory(s).
  1542.  
  1543.  
  1544.       Format Diskette...
  1545.       This selection formats a diskette in one of your floppy drives by
  1546.       calling the MS-DOS Format program.
  1547.  
  1548.       The first time you choose Format Diskette... after installing Command
  1549.       Post, you are asked what kind of floppy drives your system has.
  1550.       Command Post saves this information in the WIN.INI file for the next
  1551.       time you choose Format Diskette... .  If your hardware changes, you
  1552.       can reset this information by selecting Reset Assorted Options from
  1553.       the File menu, under Preferences.
  1554.  
  1555.  
  1556.       Directory Tree
  1557.       When you select this menu item, a window is displayed which
  1558.       graphically shows the directory structure of the current drive.  You
  1559.       can scroll through the structure, and then click on the directory you
  1560.       want to change to.
  1561.  
  1562.       If you have two Command Post windows open, then clicking on a
  1563.       directory in the Tree with the left mouse button (or pressing the
  1564.       Enter key) causes the left-most Command Post window to change to the
  1565.       selected directory, and clicking on a directory in the Tree with the
  1566.       right mouse button (or pressing Shift-Enter) causes the right-most
  1567.       Command Post window to change to the selected directory.
  1568.  
  1569.       If you have only one Command Post window open, then clicking on a
  1570.       directory in the Tree with the left mouse button (or pressing the
  1571.       Enter key) causes the Command Post window to change to the selected
  1572.       directory, and clicking on a directory in the Tree with the right
  1573.       mouse button (or pressing Shift-Enter) causes a second Command Post
  1574.       window to open with the selected directory displayed.
  1575.  
  1576.  
  1577.  
  1578.  
  1579.       View Menu
  1580.       *********
  1581.  
  1582.       Short
  1583.       Long
  1584.       These selections control how much information is displayed for the
  1585.       files in the Command Post window.  View/Short displays only the
  1586.       filenames, while View/Long also displays the size, the date/time
  1587.       modified, and the file attributes.
  1588.  
  1589.  
  1590.  
  1591.       ______________________________________________________________________
  1592.                                                                           22
  1593.       ______________________________________________________________________
  1594.  
  1595.  
  1596.  
  1597.       All
  1598.       Partial...
  1599.       Programs
  1600.       These selections determine which filenames are shown.  All displays
  1601.       all files in the current directory.  Partial... displays a dialog box
  1602.       where you specify one or more wildcarded filenames to show.  Programs
  1603.       shows only those files with an extension of .BAT, .COM, .EXE, or .PIF.
  1604.  
  1605.  
  1606.       By Name
  1607.       By Date
  1608.       By Size
  1609.       By Kind
  1610.       Unsorted
  1611.       These selections specify how to sort the files in the display.  The
  1612.       default is to sort by Name.  Sorting by Date shows the most-recently
  1613.       modified files before the older ones.  Sorting by Size shows the
  1614.       largest files first.  Sorting by Kind displays the files by their
  1615.       extensions.  Unsorted produces a list in the same order as you would
  1616.       get from a dir listing in MSDOS.
  1617.  
  1618.       If you have the file display set to View/Long, then whichever column
  1619.       is being sorted on is displayed in a bold font.
  1620.  
  1621.  
  1622.       Window Arranging
  1623.  
  1624.       1 Stack
  1625.       2 Arrange
  1626.       3 Arrange in Rows
  1627.       4 Arrange in Columns
  1628.  
  1629.       5 (w/o CP) Stack
  1630.       6 (w/o CP) Arrange
  1631.       7 (w/o CP) Arrange in Rows
  1632.       8 (w/o CP) Arrange in Cols
  1633.       The right column of the View menu contains the window arranging
  1634.       functions.  There are four ways Command Post can arrange application
  1635.       windows on the screen for you:
  1636.  
  1637.  
  1638.  
  1639.       Selections 5 through 8 are the same as 1 through 4, except that the
  1640.       Command Post window is minimized.
  1641.  
  1642.       When you specify Arrange in Rows and you have more than four open
  1643.       windows, or if you specify Arrange in Columns and there are more than
  1644.       three open windows, Command Post will revert to Arrange.
  1645.  
  1646.  
  1647.       Change Wallpaper
  1648.       This menu item replaces the current background Wallpaper with a new
  1649.       Wallpaper (BMP) file of your choice.
  1650.       ______________________________________________________________________
  1651.                                                                           23
  1652.       ______________________________________________________________________
  1653.  
  1654.  
  1655.  
  1656.       Blank Screen Now!
  1657.       This menu item immediately activates the Windows 3.1 screen saver that
  1658.       you have configured through the Desktop section of Control Panel.
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.       ______________________________________________________________________
  1710.                                                                           24
  1711.       ______________________________________________________________________
  1712.  
  1713.  
  1714.  
  1715.  
  1716.       Main Menu
  1717.       *********
  1718.  
  1719.       Command Post (More Windows)
  1720.       This menu item opens a second, third, or fourth Command Post window.
  1721.       This way you can view more than one directory at a time.  Also, when
  1722.       you choose File/Copy... or File/Rename/Move..., the destination
  1723.       pathname defaults to the "other" Command Post's directory.
  1724.  
  1725.  
  1726.       Command Post (Show All Windows)
  1727.       This menu item repositions all open Command Post windows to their
  1728.       default coordinates, which you can change by selecting Save CmdPost
  1729.       Window Positions from the File menu, under Preferences.
  1730.  
  1731.  
  1732.       Control Panel
  1733.       This selection runs the Windows Control Panel.
  1734.  
  1735.  
  1736.       Clipboard
  1737.       This menu item runs the Windows Clipboard viewer.
  1738.  
  1739.  
  1740.       DOS Prompt
  1741.       This selection runs COMMAND.COM to enable you to work in DOS directly.
  1742.       You can press ALT+ESC to switch back and forth between Windows and
  1743.       DOS, and when you are through using the command-line interface you
  1744.       type "exit" from the DOS prompt to return to Windows.
  1745.  
  1746.  
  1747.       Run "Managers"
  1748.  
  1749.       Program Manager
  1750.       This selection runs the Windows Program Manager.
  1751.  
  1752.  
  1753.       File Manager
  1754.       This selection invokes the Windows File Manager.
  1755.  
  1756.  
  1757.       Print Manager
  1758.       This selection runs Windows Print Manager.
  1759.  
  1760.  
  1761.       Edit Configurations
  1762.  
  1763.       Edit CmdPost menus
  1764.       This menu item displays a listbox containing all the .CPM files in the
  1765.       Command Post directory, and launches Notepad with the file you select.
  1766.  
  1767.  
  1768.       ______________________________________________________________________
  1769.                                                                           25
  1770.       ______________________________________________________________________
  1771.  
  1772.  
  1773.       After you edit a Command Post menu file, you can either select Reload
  1774.       Menu from Command Post's control menu to have the changes take effect
  1775.       immediately, or you can wait for the menus to be reloaded
  1776.       automatically the next time you make a selection from the menu.
  1777.       However, in the latter case you will get a message telling you to re-
  1778.       select the menu item.
  1779.  
  1780.  
  1781.  
  1782.       Load WIL Help File
  1783.       This menu item runs Windows Help with the WIL help file (WIL.HLP) that
  1784.       is included with Command Post.  This gives you a fairly complete
  1785.       reference to all the Windows Interface Language (WIL) functions and
  1786.       statements.
  1787.  
  1788.  
  1789.       Edit INI files
  1790.       This menu item lists all the .INI files in the Windows directory, and
  1791.       allows you to select one to be modified.  It then lists all the
  1792.       sections contained in the desired file, and after you select a section
  1793.       it lists all the lines contained in that section, and, finally, after
  1794.       you select a line, it allows you to edit that individual line.
  1795.  
  1796.       This provides a (relatively) safe way for inexperienced users to make
  1797.       changes to Windows INI files.
  1798.  
  1799.       Note: This menu item cannot be used to edit the "Device=" lines which
  1800.       appear in the [386Enh] section of the SYSTEM.INI file.
  1801.  
  1802.  
  1803.       Run System Configuration Editor
  1804.       This selection runs the Windows System Editor.  The System Editor
  1805.       allows you to edit the AUTOEXEC.BAT, CONFIG.SYS, WIN.INI, and
  1806.       SYSTEM.INI files.
  1807.  
  1808.  
  1809.       Run Windows Setup
  1810.       This menu item runs the Windows Setup program.  This lets you review
  1811.       your current Windows setup configuration and change it if necessary.
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.       ______________________________________________________________________
  1828.                                                                           26
  1829.       ______________________________________________________________________
  1830.  
  1831.  
  1832.  
  1833.       Restart Windows
  1834.       This menu item gives you the following three options:
  1835.  
  1836.        NO! Wait
  1837.  
  1838.         This option doesn't do anything (other than display a brief
  1839.         message).
  1840.  
  1841.        Really! Doit!
  1842.  
  1843.         This option restarts Windows, just as if you were to exit Windows
  1844.         and then manually start it up again from DOS.
  1845.  
  1846.        Reboot! this machine
  1847.  
  1848.         This option performs a complete warm boot of the computer, just
  1849.         like pressing Ctrl-Alt-Del twice.  It only works under Windows 3.1
  1850.         or higher; under Windows 3.0, it simply restarts Windows.
  1851.  
  1852.         Warning: Use this option with care.
  1853.  
  1854.  
  1855.       PIF Edit...
  1856.       This menu item lets you edit a Windows PIF file using the PIF Editor.
  1857.       If the currently-selected file is a PIF file, then the PIF Editor will
  1858.       be launched with that file.  Otherwise, the menu item will display a
  1859.       listbox containing all the .PIF files in the current directory, and
  1860.       will launch the PIF Editor with the file you select.  However, if
  1861.       there are no PIF files in the current directory, then the menu item
  1862.       will attempt to locate your PIF directory (by searching for
  1863.       _DEFAULT.PIF), and will list the PIF files in that directory.
  1864.  
  1865.       Note: You can force this menu item to list files in your PIF directory
  1866.       (instead of the current directory) by holding down the Shift key while
  1867.       selecting PIF Edit... from the menu.
  1868.  
  1869.  
  1870.       System Information
  1871.       This selection shows a message box containing numerous pieces of
  1872.       interesting information about your Windows system configuration.
  1873.  
  1874.  
  1875.       Interactive WIL
  1876.       The items on this menu item allow you to interactively enter Command
  1877.       Post commands, and to recall previously-entered commands without
  1878.       having to re-type them.  This is sometimes known as a "command stack":
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.       ______________________________________________________________________
  1887.                                                                           27
  1888.       ______________________________________________________________________
  1889.  
  1890.  
  1891.  
  1892.       Execute WIL Function
  1893.       Allows you to interactively enter a Command Post function or command.
  1894.       The return value of the function will be displayed in a message box.
  1895.  
  1896.  
  1897.       Execute a Previous Entry
  1898.       Allows you to select and re-use a previous entry from the command
  1899.       stack.
  1900.  
  1901.  
  1902.       Flush Previous Entries
  1903.       Allows you to clear all entries from the command stack.
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.       ______________________________________________________________________
  1946.                                                                           28
  1947.       ______________________________________________________________________
  1948.  
  1949.  
  1950.  
  1951.                                    COMMAND POST
  1952.                                     FUNCTIONS
  1953.  
  1954.  
  1955.  
  1956.  
  1957.       Introduction
  1958.       This section includes only those additional Command Post functions
  1959.       which do not appear in the WIL Reference Manual.  The WIL Reference
  1960.       Manual is your primary reference to the functions available in Command
  1961.       Post.
  1962.  
  1963.       Note: The functions listed under the See Also headings may be
  1964.       documented either in this User's Guide or in the WIL Reference Manual.
  1965.  
  1966.  
  1967.  
  1968.  
  1969.       Function List
  1970.       DirExist ([d:]path)
  1971.         Determines if a directory exists.
  1972.  
  1973.       DiskHide (drive-list)
  1974.         Hides disk drives from display.
  1975.  
  1976.       DiskReset ( )
  1977.         Re-examines available disk drives.
  1978.  
  1979.       DiskUpdate ( )
  1980.         Updates drive icon display.
  1981.  
  1982.       FileHilite (file-masks, mode)
  1983.         Highlights or unhighlights files in file display.
  1984.  
  1985.       IntControl (request#, p1, p2, p3, p4)
  1986.         Internal control functions.
  1987.  
  1988.       MsgTextGet (window-name)
  1989.         Returns the contents of a Windows message box.
  1990.  
  1991.       OtherDir ( )
  1992.         Finds the directory where another copy of Command Post is running,
  1993.         if any.
  1994.  
  1995.       OtherUpdate ( )
  1996.         Updates another Command Post directory display.
  1997.  
  1998.       SetDisplay (detail, sort-by, masks)
  1999.         Controls the display of files in the Command Post window.
  2000.  
  2001.  
  2002.  
  2003.  
  2004.       ______________________________________________________________________
  2005.                                                                           29
  2006.       ______________________________________________________________________
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.       DirExist
  2013.       Determines if a directory exists.
  2014.  
  2015.  
  2016.       Syntax:
  2017.        DirExist ([d:]path)
  2018.  
  2019.       Parameters:
  2020.        (s)         [d:]pathdirectory name, with optional drive.
  2021.  
  2022.       Returns:
  2023.        (i)         @TRUE if the directory exists;
  2024.                    @FALSE if it doesn't exist.
  2025.  
  2026.       You can use this function to determine whether a specified drive is
  2027.       valid by checking for the existence of the root directory on that
  2028.       drive.
  2029.  
  2030.  
  2031.       Examples:
  2032.        wpdir = "c:\wp"
  2033.        If DirExist(wpdir) == @FALSE Then DirMake(wpdir)
  2034.        DirChange(wpdir)
  2035.  
  2036.        :top
  2037.        drive = AskLine("Run Excel", "Enter a drive letter", "")
  2038.        If drive == "" Then Exit
  2039.        drive = StrSub(drive, 1, 1)
  2040.        If DirExist("%drive%:\") == @FALSE Then Goto top
  2041.        NetAddCon("\\userapps\excel", "", drive)
  2042.  
  2043.  
  2044.       See Also:
  2045.         DirChange, DirMake, DirRemove, DirRename, FileExist
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.       ______________________________________________________________________
  2064.                                                                           30
  2065.       ______________________________________________________________________
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.       DiskHide
  2072.       Hides disk drives from display.
  2073.  
  2074.  
  2075.       Syntax:
  2076.        DiskHide (drive-list)
  2077.  
  2078.       Parameters:
  2079.        (s) drive-list     string of drives to hide (non-delimited).
  2080.  
  2081.       Returns:
  2082.        (i)                always 1.
  2083.  
  2084.       This function causes the drive letters specified in drive-list to be
  2085.       removed from the disk drive icon display.
  2086.  
  2087.  
  2088.       Example:
  2089.        DiskHide("STUVW")
  2090.  
  2091.  
  2092.       See Also:
  2093.         DiskReset, DiskUpdate
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.       ______________________________________________________________________
  2123.                                                                           31
  2124.       ______________________________________________________________________
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.       DiskReset
  2131.       Re-examines available disk drives.
  2132.  
  2133.  
  2134.       Syntax:
  2135.        DiskReset ( )
  2136.  
  2137.       Parameters:
  2138.        (none)
  2139.  
  2140.       Returns:
  2141.        (i)         always 0.
  2142.  
  2143.       Examines disk drives on system, and adds any new drives found to the
  2144.       display of drive icons. If an existing drive was hidden with the
  2145.       DiskHide function, it will no longer be hidden (unlike the DiskUpdate
  2146.       function).
  2147.  
  2148.  
  2149.       Example:
  2150.        DiskReset()
  2151.  
  2152.  
  2153.       See Also:
  2154.         DiskHide, DiskUpdate
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.       ______________________________________________________________________
  2182.                                                                           32
  2183.       ______________________________________________________________________
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.       DiskUpdate
  2190.       Updates drive icon display.
  2191.  
  2192.  
  2193.       Syntax:
  2194.        DiskUpdate ( )
  2195.  
  2196.       Parameters:
  2197.        (none)
  2198.  
  2199.       Returns:
  2200.        (i)         always 0.
  2201.  
  2202.       Examines disk drives on system, and adds any new drives found to the
  2203.       display of drive icons. If an existing drive was hidden with the
  2204.       DiskHide function, it will remain hidden (unlike the DiskReset
  2205.       function).
  2206.  
  2207.  
  2208.       Example:
  2209.        DiskUpdate()
  2210.  
  2211.  
  2212.       See Also:
  2213.         DiskHide, DiskReset
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.       ______________________________________________________________________
  2241.                                                                           33
  2242.       ______________________________________________________________________
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.       FileHilite
  2249.       Highlights or unhighlights files in file display.
  2250.  
  2251.  
  2252.       Syntax:
  2253.        FileHilite (file-masks, mode)
  2254.  
  2255.       Parameters:
  2256.        (s) file-masks     one or more file specifications, which may be
  2257.                           wildcarded.
  2258.        (i) mode           @TRUE  Highlight matching files.
  2259.                           @FALSE Unhighlight matching files.
  2260.  
  2261.       Returns:
  2262.        (i)                total number of files highlighted or unhighlighted.
  2263.  
  2264.       This function causes one or more groups of files in the file display
  2265.       window to be highlighted (selected) or unhighlighted (de-selected).
  2266.       This is useful to select files for an operation such as FileCopy, or
  2267.       just to spotlight certain files in a directory.
  2268.  
  2269.       Multiple file specifications must be space-delimited.
  2270.  
  2271.  
  2272.       Examples:
  2273.        FileHilite("*.ZIP *.LZH *.ARC", @TRUE)
  2274.  
  2275.        FileHilite("OLD*.ZIP", @FALSE)
  2276.  
  2277.  
  2278.       See Also:
  2279.         CurrentFile, FileExtension
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.       ______________________________________________________________________
  2300.                                                                           34
  2301.       ______________________________________________________________________
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.       IntControl
  2308.       Internal control functions.
  2309.  
  2310.  
  2311.       Syntax:
  2312.        IntControl (request#, p1, p2, p3, p4)
  2313.  
  2314.       Parameters:
  2315.        (i) request#  specifies which sub-function is to be performed (see
  2316.                      below).
  2317.        (s) p1 - p4   parameters which may be required by the function (see
  2318.                      below).
  2319.  
  2320.       Returns:
  2321.        (s)           varies (see below).
  2322.  
  2323.       Short for Internal Control, a special function that permits numerous
  2324.       internal operations.  The first parameter of IntControl defines
  2325.       exactly what the function does, the other parameters are possible
  2326.       arguments to the function.
  2327.  
  2328.       Refer to the WIL Reference Manual for information on other sub-
  2329.       functions.
  2330.  
  2331.  
  2332.       IntControl (2, 0, 0, 0, 0)
  2333.       Returns the number of Command Post windows currently open.
  2334.  
  2335.  
  2336.       IntControl (3, 0, 0, 0, 0)
  2337.       Writes the positions of each open Command Post window to the
  2338.       WWW-PROD.INI file, using the WinPositionXY format.
  2339.  
  2340.  
  2341.       IntControl (6, 0, 0, 0, 0)
  2342.       Positions all open Command Post windows, based on the information in
  2343.       the WWW-PROD.INI file.
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.       ______________________________________________________________________
  2359.                                                                           35
  2360.       ______________________________________________________________________
  2361.  
  2362.  
  2363.       (IntControl continued)
  2364.  
  2365.  
  2366.       IntControl (9, p1, 0, 0, 0)
  2367.       Controls Command Post window resizing.
  2368.  
  2369.         P1   Meaning
  2370.  
  2371.         0    Resize automagically on open and close (default)
  2372.         1    disable resize on window close
  2373.         2    disable resize on window open
  2374.         3    disable resize on open and close
  2375.  
  2376.  
  2377.       IntControl (11, p1, 0, 0, 0)
  2378.       Used to tell Command Post that it is (or is not) a shell, contrary to
  2379.       what it really is.  That is, if it is really a shell, you can disable
  2380.       the shell-like characteristics, or if it is not a shell, enable its
  2381.       shell characteristics.  However, if you are using Windows 3.1 or
  2382.       higher, and Command Post is your Windows shell, it is generally
  2383.       recommended that you do not use this function to tell it otherwise.
  2384.  
  2385.         P1   Meaning
  2386.  
  2387.         0    Play standard app
  2388.         1    Play shell
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.       ______________________________________________________________________
  2418.                                                                           36
  2419.       ______________________________________________________________________
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.       MsgTextGet
  2426.       Returns the contents of a Windows message box.
  2427.  
  2428.  
  2429.       Syntax:
  2430.        MsgTextGet (window-name)
  2431.  
  2432.       Parameters:
  2433.        (s) window-name    full title of the message box window.
  2434.  
  2435.       Returns:
  2436.        (s)                contents of the message box.
  2437.  
  2438.  
  2439.       This function returns the text contents of a standard Windows message
  2440.       box.  "Window-name" must be the full title of the message box window,
  2441.       and is case-sensitive.
  2442.  
  2443.       Note: This function will not work with the types of message boxes
  2444.       created by most WIL functions, since they are not standard Windows
  2445.       message boxes.
  2446.  
  2447.  
  2448.       Example:
  2449.        msg = MsgTextGet("Microsoft Word")
  2450.        If msg == "Search text not found" Then SendKey("~")
  2451.  
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.       ______________________________________________________________________
  2477.                                                                           37
  2478.       ______________________________________________________________________
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.       OtherDir
  2485.       Finds the directory where another copy of Command Post is running, if
  2486.       any.
  2487.  
  2488.  
  2489.       Syntax:
  2490.        OtherDir ( )
  2491.  
  2492.       Parameters:
  2493.        (none)
  2494.  
  2495.       Returns:
  2496.        (s)         the directory of the second-most recently used Command
  2497.                    Post window.  The current window is considered the most
  2498.                    recently used window.
  2499.  
  2500.       Use this command to determine the directory of the second-most-
  2501.       recently-used Command Post window.  Useful in setting up copy and move
  2502.       operations between two instances of Command Post.
  2503.  
  2504.  
  2505.       Example:
  2506.        a = DirGet()
  2507.        b = OtherDir()
  2508.        Message("Directory of this CmdPost window is", a)
  2509.        Message("Directory of the other CmdPost window is", b)
  2510.        Drop(a, b)
  2511.  
  2512.  
  2513.       See Also:
  2514.         DirGet, DirHome, OtherUpdate
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.       ______________________________________________________________________
  2536.                                                                           38
  2537.       ______________________________________________________________________
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.       OtherUpdate
  2544.       Updates other Command Post directory displays.
  2545.  
  2546.  
  2547.       Syntax:
  2548.        OtherUpdate ( )
  2549.  
  2550.       Parameters:
  2551.        (none)
  2552.  
  2553.       Returns:
  2554.        (i)         @TRUE if another copy of Command Post was found to
  2555.                    update;
  2556.                    @FALSE if this is the only copy running.
  2557.  
  2558.       This command updates the file displays of any other open Command Post
  2559.       windows.  This is useful if your menu item changes a directory; i.e.
  2560.       if a file or directory is created, moved, renamed, or deleted.
  2561.       OtherUpdate helps ensure the other Command Post display(s) immediately
  2562.       reflect the change the user caused from this copy.
  2563.  
  2564.  
  2565.       Example:
  2566.        FileCopy("myfile.txt", OtherDir(), @FALSE)
  2567.        OtherUpdate()
  2568.  
  2569.  
  2570.       See Also:
  2571.         OtherDir, Refresh, SetDisplay
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.       ______________________________________________________________________
  2595.                                                                           39
  2596.       ______________________________________________________________________
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.       Refresh
  2603.       Updates file window display.
  2604.  
  2605.  
  2606.       Syntax:
  2607.        Refresh (request#)
  2608.  
  2609.       Parameters:
  2610.        (i) request#      see below.
  2611.  
  2612.       Returns:
  2613.        (i)               always 1.
  2614.  
  2615.       This function updates the files being displayed in the Command Post
  2616.       window, as well as the drive icons that are displayed.  It is useful
  2617.       after running an application (such as a DOS program) which creates,
  2618.       deletes, or renames a file in the directory being viewed, or connects
  2619.       to (or disconnects from) a network server, and you wish the changes to
  2620.       be reflected in the Command Post window.
  2621.  
  2622.       Specifying a request# of 0 causes only the active Command Post window
  2623.       to be updated, and specifying a request# of 1 causes all Command Post
  2624.       windows to be updated.
  2625.  
  2626.       Refresh(0) is the same as SetDisplay("", "", ""), and Refresh(1) is
  2627.       the same as OtherUpdate().
  2628.  
  2629.       Note:  This command does not take effect until the WIL program has
  2630.       completed, regardless of where the command may appear in the program.
  2631.  
  2632.  
  2633.       Example:
  2634.        Run("pkunzip.exe", CurrentFile())
  2635.        Refresh(0)
  2636.  
  2637.  
  2638.       See Also:
  2639.         OtherUpdate, Reload, SetDisplay
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.       ______________________________________________________________________
  2654.                                                                           40
  2655.       ______________________________________________________________________
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.       SetDisplay
  2662.       Controls the display of files in the Command Post window.
  2663.  
  2664.  
  2665.       Syntax:
  2666.        SetDisplay (detail, sort-by, masks)
  2667.  
  2668.       Parameters:
  2669.        (s) detail     level of detail.  Use "SHORT", "LONG", or "NONE".
  2670.        (s) sort-by    how to sort the filenames.  Use "NAME", "KIND", "SIZE",
  2671.                       "DATE" or "UNSORTED".
  2672.        (s) masks      list of masks for file display.
  2673.  
  2674.       Returns:
  2675.        (i)            @TRUE if valid options were specified;
  2676.                       @FALSE if invalid.
  2677.  
  2678.       Use this function to change and/or update the file display.
  2679.  
  2680.       If "detail" is set to "SHORT", only file names and extensions will be
  2681.       displayed.  If it is set to "LONG", file sizes, times, and attributes
  2682.       will be displayed as well.  If it is set to "NONE", there will not be
  2683.       any file display at all; this is useful for security reasons, to
  2684.       prevent users from executing unwanted programs.
  2685.  
  2686.       Any of the fields may be null.  If a field is null the previous
  2687.       setting is used.  This command will alter the file display Parameters,
  2688.       and then re-read all the files and update the display.
  2689.  
  2690.       A special form of this function, SetDisplay ("","",""), will update
  2691.       the file display without changing any of the previously set
  2692.       parameters.  This is necessary after changing directories if you want
  2693.       the new directory to be shown, and is useful after running programs
  2694.       which create or delete files.
  2695.  
  2696.       By default, hidden and system files are not displayed.  This can be
  2697.       changed by setting "SysHide=Yes" in the [CmdPost] section of
  2698.       WWW-PROD.INI.
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.       ______________________________________________________________________
  2713.                                                                           41
  2714.       ______________________________________________________________________
  2715.  
  2716.  
  2717.  
  2718.  
  2719.       (SetDisplay continued)]
  2720.  
  2721.  
  2722.  
  2723.       Note:  SetDisplay does not take effect until the current WIL program
  2724.       has completed, regardless of where the command may appear in the
  2725.       program.
  2726.  
  2727.  
  2728.       Example:
  2729.        Windows &SDK
  2730.         &Show SDK Development Files
  2731.            SetDisplay("", "", "*.ICO *.CUR *.BMP *.DLG *.H")
  2732.  
  2733.  
  2734.       See Also:
  2735.         OtherUpdate, Refresh
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.       ______________________________________________________________________
  2772.                                                                           42
  2773.